package com.example.demo.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
	
	private Integer id;
	private String  name;
	private Integer sex;
	private String  createdate;
	private Integer department_id;
	private String  pass;

	public static String[] sexs= {"未指定","男性","女性"};
	public String getSexname() {
		if(sex == null)
			return sexs[0];
		return sexs[sex];
	}

	private String department_name;







}
